90310: xfi:fact-typed-dimension-value

Documentation

Owners

Name Affiliation Email Start End
Herm Fischer UBMatrix / Mark V Systems fischer@markv.com 06-02-2008 at 12:55:00

References

function definition

Test Case Variations


V-01 Height dimension for Mount Kilimanjaro

Documentation

Inputs

Outputs

  • Result test: count( $result ) eq 1 and count( $result/* ) eq 1 and $result/*[1] instance of element(t:peakHeight,xs:integer) and data( $result/*[1] ) instance of xs:integer and $result/t:peakHeight eq xs:integer(5963)

V-02 Height dimension for pre-eruption volcano (whose hypercube lacks the location dimension because the volcano is not erupted yet, but it has alternate link roles allowing height to be added later after erupting)

Documentation

Inputs

Outputs

  • Result test: empty( $result )

V-03 Height dimension for SpacePhenomenon concept Wormhole (whose hypercube for space warping can never have the height dimension)

Documentation

Inputs

Outputs

  • Result test: empty( $result )

V-04 Error of concept argument which is not a dimension

Documentation

Inputs

Outputs

  • Error code: xfie:invalidTypedDimensionQName

V-05 Error of non-XBRL element argument as dimension argument

Documentation

Inputs

Outputs

  • Error code: xfie:invalidTypedDimensionQName

V-06 Raises an error for an attribute declaration argument

Documentation

Tests that error is detected when the concept name argument declares an attribute.

Inputs

Outputs

  • Error code: xfie:invalidTypedDimensionQName

V-07 Raises an error for an xbrli namespace'ed argument

Documentation

Tests that error is detected when the concept qname is xbrli:item

Inputs

Outputs

  • Error code: xfie:invalidTypedDimensionQName

V-08 Dimension can be located in either segment or scenario, for this variation appears in the segment, to test that function is looking in either location for value.

Documentation

Inputs

Outputs

  • Result test: count( $result ) eq 1 and count( $result/* ) eq 1 and $result/*[1] instance of element(t:typedDim1Value,xs:string) and data( $result/*[1] ) instance of xs:string and $result/t:typedDim1Value eq 'dimVal1'

V-09 Dimension can be located in either segment or scenario but for this variation appears in the scenario instead of segment, to test that function is looking in either location for value.

Documentation

Inputs

Outputs

  • Result test: count( $result ) eq 1 and count( $result/* ) eq 1 and $result/*[1] instance of element(t:typedDim1Value,xs:string) and data( $result/*[1] ) instance of xs:string and $result/t:typedDim1Value eq 'dimVal1'

Revisions

Name On Details
Herm Fischer 16-03-2008 at 08:30:00 Typed dimension testcase.
Herm Fischer 01-09-2008 at 00:00:00 Made the function segment/scenario agnostic, renamed without segment/scenario in name.
Herm Fischer 21-09-2008 at 00:00:00 Fixed V-09 and V-09, for segment/scenario ambivalence.
Herm Fischer 16-11-2008 at 00:00:00 Fixed V-03 to empty result
Herm Fischer 05-12-2008 at 00:00:00 Added data type verification.